.head {
    border-bottom: 1px solid #aec7ec;
    position: relative;
}

.head-nav li a {
    color: black;
}

.head-btn a:first-child {
    color: #000;
}

.head-nav .active a {
    color: #00bdff;
    font-weight: bold;
}

.head-nav .active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    color: #00bdff;
    border-bottom: 2px solid #00bdff;
    position: absolute;
    top: 40px;
}


/* API分类搜索部分 */

.apicatgray h2 {
    margin-top: 50px;
    font-size: 20px;
    font-weight: normal;
    color: black;
    margin-bottom: 24px;
}

.api-link a {
    display: inline-block;
    padding: 0 16px;
    line-height: 24px;
    border: 1px solid #ddd;
    margin-bottom: 14px;
    margin-right: 10px;
    border-radius: 10px;
    height: 24px;
}

.api-link .bold {
    font-weight: bold;
}

.api-link .active {
    font-weight: bold;
    color: #00bdff;
    border-color: #00bdff;
}

.api-link a:hover {
    font-weight: bold;
    color: #00bdff;
    border-color: #00bdff;
}

.api-box strong {
    color: #000;
    margin-right: 10px;
    line-height: 30px;
}

.api-search {
    background-color: #f4f4f4;
    border-radius: 15px;
}

.api-search-text {
    width: 200px;
    height: 30px;
    background-color: transparent;
    border: none;
    padding: 0 16px;
    box-sizing: border-box;
    outline: none;
}

.api-btn {
    width: 30px;
    height: 30px;
    background: url(../../assets/imgs/magnifier.png) no-repeat center;
    border: none;
    cursor: pointer;
}


/* API主体部分 */

.main-box {
    margin-top: 50px;
}

.main-box li {
    width: 227px;
    height: 270px;
    border: 1px solid #eee;
    text-align: center;
    box-sizing: border-box;
    float: left;
    margin-right: 16px;
    margin-bottom: 16px;
    position: relative;
    /* 溢出隐藏 */
    overflow: hidden;
}

.main-box li:nth-child(5n) {
    margin-right: 0px;
    margin-bottom: 0px;
}

.main-box li a {
    display: block;
    line-height: 30px;
    padding-top: 60px;
    height: 170px;
}

.main-box li a img {
    margin-bottom: 10px;
}

.main-box li button {
    width: 192px;
    color: #fff;
    background-color: #00bdff;
    line-height: 32px;
    margin-top: 50px;
    border: none;
    /* display: none; */
    opacity: 0;
}

.main-box li:hover button {
    margin-top: 0;
    transition: all 800ms;
    opacity: 1;
}

.main-box li:hover a {
    padding-top: 40px;
    transition: all 800ms;
}


/* 企业专用 */

.main-box li .qiye {
    position: absolute;
    margin: 10px 0 0 10px;
    color: #00bdff;
    background-color: #e5f8ff;
    display: none;
}

.main-box li .on {
    display: block;
}

.api-list .green {
    color: green;
}

.api-list .red {
    color: red;
}


/* 弹出框样式设置 */

.other {
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .3);
    height: 100%;
    width: 100%;
    z-index: 100;
    display: none;
}

.other .box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 420px;
    height: 500px;
    z-index: 120;
    display: none;
}


/* 分页效果 */

.page {
    text-align: center;
    height: 40px;
}

.page ul {
    display: inline-block;
}

.page li {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    line-height: 24px;
    margin: 0 5px;
    cursor: pointer;
}

.page .act {
    background-color: #00bdff;
    color: #fff;
}

.page button {
    background-color: #fff;
    color: #00bdff;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}